package com.rc.saas.tenant.mapper.enterprise;


import com.rc.saas.tenant.common.base.BaseMapper;
import com.rc.saas.tenant.model.enterprise.EnterpriseSubmember;
import com.rc.saas.tenant.model.enterprise.EnterpriseSubmemberExample;
import com.rc.saas.tenant.search.enterprise.EnterpriseSubMemberSearch;
import com.rc.saas.tenant.vo.enterprise.EnterPriseSubMemberResult;
import com.rc.saas.tenant.vo.enterprise.EnterpriseSubmemberExportVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EnterpriseSubmemberMapper extends BaseMapper<Long, EnterpriseSubmember, EnterpriseSubmemberExample> {

    List<EnterPriseSubMemberResult> searchByCondition(EnterpriseSubMemberSearch enterpriseSubMemberSearch);

    List<EnterPriseSubMemberResult> listLogout(EnterpriseSubMemberSearch enterpriseSubMemberSearch);

    List<Long> listMemberIdByEnterpriseId(@Param("tenantCode") String tenantCode,@Param("enterpriseId") Long enterpriseId);

    List<EnterpriseSubmemberExportVo> listEnterpriseSubmember(EnterpriseSubMemberSearch enterpriseSubMemberSearch);

    EnterpriseSubmember selectMemberByMemberId(Long memberId);
}